#pragma once

#include "LGUIWindow.h"
#include "LGUIPanel.h"

class LGUITabstrip : public LGUIWindow  
{
	struct LGUITab
	{
		LGUITab()
		{
			panel=0; width=0;
		}
		LGUIPanel *panel;
		String text;
		int width;
	};
	LGUITab tabs[8]; //max 8 tabs
	int numTabs;

	int curTab;
public:
	LGUITabstrip(int _x, int _y, int _w, int _h);
	virtual ~LGUITabstrip();

	void addTab(const TCHAR *text, LGUIPanel *panel);
	void draw(int xoff, int yoff);
	void penDown(int px, int py);
	void setTab(int t)
	{
		curTab=t;
		redraw();
	}
};
